package com.autumn.xa.a.tuling.jvm;

/**
 * ClassName: StackOverFlowDemo
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/6/24 4:15 PM
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/6/24 4:15 PM   @Version 1.0        描述
 */
public class StackOverFlowDemo {
    // JVM设置 -Xss128k(默认1M)
    static int count = 0;

    static void redo() {
        count++;
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        } catch (Throwable t) {
            t.printStackTrace();
            System.out.println(count);
        }
    }

}
